<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style>
			.transition{
				width: 100px;
				height: 100px;
				background-color: #FF0000;
				/*横向拉伸效果，执行时间两秒*/
				transition: width 2s;
			}
			/*鼠标移入div触发动画效果*/
			.transitionbox:hover{
				width: 300px;
				
			}
		</style>
	</head>
	<body>
		<h3>拉伸盒子动画效果</h3>
		<h5>transition他有两个参数：拉伸方向width,2s执行时间</h5>
		
		<div class="transition"></div>
	</body>
</html>
